﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002A1 RID: 673
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueReRollDiceScRsp : IMessage<ChessRogueReRollDiceScRsp>, IMessage, IEquatable<ChessRogueReRollDiceScRsp>, IDeepCloneable<ChessRogueReRollDiceScRsp>, IBufferMessage
	{
		// Token: 0x170008C3 RID: 2243
		// (get) Token: 0x06001E22 RID: 7714 RVA: 0x0005601F File Offset: 0x0005421F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueReRollDiceScRsp> Parser
		{
			get
			{
				return ChessRogueReRollDiceScRsp._parser;
			}
		}

		// Token: 0x170008C4 RID: 2244
		// (get) Token: 0x06001E23 RID: 7715 RVA: 0x00056026 File Offset: 0x00054226
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueReRollDiceScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170008C5 RID: 2245
		// (get) Token: 0x06001E24 RID: 7716 RVA: 0x00056038 File Offset: 0x00054238
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueReRollDiceScRsp.Descriptor;
			}
		}

		// Token: 0x06001E25 RID: 7717 RVA: 0x0005603F File Offset: 0x0005423F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueReRollDiceScRsp()
		{
		}

		// Token: 0x06001E26 RID: 7718 RVA: 0x00056048 File Offset: 0x00054248
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueReRollDiceScRsp(ChessRogueReRollDiceScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueDiceInfo_ = ((other.rogueDiceInfo_ != null) ? other.rogueDiceInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001E27 RID: 7719 RVA: 0x00056094 File Offset: 0x00054294
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueReRollDiceScRsp Clone()
		{
			return new ChessRogueReRollDiceScRsp(this);
		}

		// Token: 0x170008C6 RID: 2246
		// (get) Token: 0x06001E28 RID: 7720 RVA: 0x0005609C File Offset: 0x0005429C
		// (set) Token: 0x06001E29 RID: 7721 RVA: 0x000560A4 File Offset: 0x000542A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170008C7 RID: 2247
		// (get) Token: 0x06001E2A RID: 7722 RVA: 0x000560AD File Offset: 0x000542AD
		// (set) Token: 0x06001E2B RID: 7723 RVA: 0x000560B5 File Offset: 0x000542B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDiceInfo RogueDiceInfo
		{
			get
			{
				return this.rogueDiceInfo_;
			}
			set
			{
				this.rogueDiceInfo_ = value;
			}
		}

		// Token: 0x06001E2C RID: 7724 RVA: 0x000560BE File Offset: 0x000542BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueReRollDiceScRsp);
		}

		// Token: 0x06001E2D RID: 7725 RVA: 0x000560CC File Offset: 0x000542CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueReRollDiceScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueDiceInfo, other.RogueDiceInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001E2E RID: 7726 RVA: 0x0005611C File Offset: 0x0005431C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueDiceInfo_ != null)
			{
				num ^= this.RogueDiceInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001E2F RID: 7727 RVA: 0x00056171 File Offset: 0x00054371
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001E30 RID: 7728 RVA: 0x00056179 File Offset: 0x00054379
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001E31 RID: 7729 RVA: 0x00056184 File Offset: 0x00054384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueDiceInfo_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.RogueDiceInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001E32 RID: 7730 RVA: 0x000561E0 File Offset: 0x000543E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueDiceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueDiceInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001E33 RID: 7731 RVA: 0x00056238 File Offset: 0x00054438
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueReRollDiceScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueDiceInfo_ != null)
			{
				if (this.rogueDiceInfo_ == null)
				{
					this.RogueDiceInfo = new ChessRogueDiceInfo();
				}
				this.RogueDiceInfo.MergeFrom(other.RogueDiceInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001E34 RID: 7732 RVA: 0x000562A0 File Offset: 0x000544A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001E35 RID: 7733 RVA: 0x000562AC File Offset: 0x000544AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 24U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.rogueDiceInfo_ == null)
					{
						this.RogueDiceInfo = new ChessRogueDiceInfo();
					}
					input.ReadMessage(this.RogueDiceInfo);
				}
			}
		}

		// Token: 0x04000C71 RID: 3185
		private static readonly MessageParser<ChessRogueReRollDiceScRsp> _parser = new MessageParser<ChessRogueReRollDiceScRsp>(() => new ChessRogueReRollDiceScRsp());

		// Token: 0x04000C72 RID: 3186
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000C73 RID: 3187
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04000C74 RID: 3188
		private uint retcode_;

		// Token: 0x04000C75 RID: 3189
		public const int RogueDiceInfoFieldNumber = 2;

		// Token: 0x04000C76 RID: 3190
		private ChessRogueDiceInfo rogueDiceInfo_;
	}
}
